package Proxy.java.staticProxy;

public class AnimalProxy implements Animal{

    Animal animal;

    public AnimalProxy(Animal animal) {
        this.animal = animal;
    }

    @Override
    public void eat() {
        System.out.println("吃之前");
        animal.eat();
        System.out.println("吃之后");
    }
}
